"""
核心分析专家
"""
from langgraph.prebuilt import create_react_agent

from core.llm import llm
from core.agents.plan.prompts import analyze_prompt


analyzer = create_react_agent(
    name="Analyzer",
    role="Core Analyst",
    description="Performs analysis based on delegated analytical sub-tasks.",
    prompt=analyze_prompt,
    model = llm,
    tools = []
)


if __name__ == '__main__':
    res = analyzer.invoke({"messages": "what's (3 + 5) x 12?"})
    print(res['messages'][-1].content)